<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WeekCheckout extends Model
{

    protected $fillable = [
        'user_id','profit','profit_checkout','all_data',
    ];

    /***
     * 1对1 关联用户表
     * @return mixed
     */
    public function admin_user()
    {
        return $this->belongsTo(AdminUser::class, 'user_id', 'id');
    }
    //
}
